package com.example.demo.model.mapper;

import com.example.demo.model.valueObject.OperateRecord;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description:用户积分操作记录持久化
 * @Author: STY
 * @Date: 2021/3/6
 *
 */
@Repository
public interface OperateRecordMapper {
    //根据id获取操作记录
    List<OperateRecord> getOperateRecordById(String userId);
    //插入一条记录
    void insertAnOperateRecord(OperateRecord operateRecord);
    //获取一周所有的操作记录
    List<OperateRecord> getWeekOperateRecord();
    //获取所有的操作记录
    List<OperateRecord> getAllOperateRecord();
}
